﻿using System;
using System.Collections.Generic;

namespace Rj.PersonnelVerification.Server.DataBaseContext.Entities
{
    public partial class IoTbUploadBillMxxmHuBeiG
    {
        public int SerialNo { get; set; }
        public long RegNo { get; set; }
        /// <summary>
        /// 处方流水号（单次就诊内唯一）
        /// </summary>
        public string FeedetlSn { get; set; } = null!;
        /// <summary>
        /// 个人编号
        /// </summary>
        public string PsnNo { get; set; } = null!;
        /// <summary>
        /// 就诊id
        /// </summary>
        public string MdtrtId { get; set; } = null!;
        /// <summary>
        /// 医疗类别
        /// </summary>
        public string MedType { get; set; } = null!;
        /// <summary>
        /// 就诊流水号（同登记时的就诊流水号）
        /// </summary>
        public string IptOtpNo { get; set; } = null!;
        /// <summary>
        /// 收费项目种类（二级代码）
        /// </summary>
        public string ItemKind { get; set; } = null!;
        /// <summary>
        /// 收费类别（二级代码）
        /// </summary>
        public string ItemCategory { get; set; } = null!;
        /// <summary>
        /// 处方号
        /// </summary>
        public string Rxno { get; set; } = null!;
        /// <summary>
        /// 处方日期（YYYYMMDDHH24MISS）
        /// </summary>
        public string RecipeDate { get; set; } = null!;
        /// <summary>
        /// 协议机构收费项目内码
        /// </summary>
        public string HisItemCode { get; set; } = null!;
        /// <summary>
        /// 收费项目中心编码
        /// </summary>
        public string? ItemCode { get; set; }
        /// <summary>
        /// 协议机构收费项目名称
        /// </summary>
        public string HisItemName { get; set; } = null!;
        /// <summary>
        /// 单价（4位小数）
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 数量（2位小数）
        /// </summary>
        public decimal Cnt { get; set; }
        /// <summary>
        /// 金额（4位小数，金额与 (单价*数量)的差值不能大于0.01）
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 备用
        /// </summary>
        public string? Reserve { get; set; }
        /// <summary>
        /// 剂型（二级代码）
        /// </summary>
        public string? DoseForm { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string? Spec { get; set; }
        /// <summary>
        /// 每次用量（2位小数）
        /// </summary>
        public decimal Dosage { get; set; }
        /// <summary>
        /// 使用频次
        /// </summary>
        public string? Freq { get; set; }
        /// <summary>
        /// 医师编码
        /// </summary>
        public string DoctorNo { get; set; } = null!;
        /// <summary>
        /// 医师姓名
        /// </summary>
        public string DoctorName { get; set; } = null!;
        /// <summary>
        /// 用法
        /// </summary>
        public string? Usage { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string? Unit { get; set; }
        /// <summary>
        /// 科室编号
        /// </summary>
        public string DeptNo { get; set; } = null!;
        /// <summary>
        /// 科室名称
        /// </summary>
        public string DeptName { get; set; } = null!;
        /// <summary>
        /// 执行天数
        /// </summary>
        public string? Days { get; set; }
        /// <summary>
        /// 草药单复方标志（二级代码）
        /// </summary>
        public string? HerbExaFlag { get; set; }
        /// <summary>
        /// 经办人（协议机构操作员姓）
        /// </summary>
        public string Operator { get; set; } = null!;
        /// <summary>
        /// 药品剂量单位（当上传药品时非空）
        /// </summary>
        public string? DosageUnit { get; set; }
        /// <summary>
        /// 全额自费标志（预留，当传入自费标志，认为本项目按照自费处理，针对限制用药使用）
        /// </summary>
        public string? FullSelfFlag { get; set; }
        /// <summary>
        /// 备用
        /// </summary>
        public string? Reserve1 { get; set; }
        /// <summary>
        /// 备用
        /// </summary>
        public string? Reserve2 { get; set; }
        public string? ResponseFeedetlSn { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public decimal? ResponseAmount { get; set; }
        /// <summary>
        /// 自理金额
        /// </summary>
        public decimal? ResponseSelfAmt { get; set; }
        /// <summary>
        /// 自费金额
        /// </summary>
        public decimal? ResponseOwnAmt { get; set; }
        /// <summary>
        /// 超限价自付金额（4位小数，包含在自费金额中）
        /// </summary>
        public decimal? ResponseOverAmt { get; set; }
        /// <summary>
        /// 收费类别
        /// </summary>
        public string? ResponseItemCategory { get; set; }
        /// <summary>
        /// 收费项目等级
        /// </summary>
        public string? ResponseItemLevel { get; set; }
        /// <summary>
        /// 全额自费标志
        /// </summary>
        public string? ResponseFullOwnFlag { get; set; }
        /// <summary>
        /// 自理比例
        /// </summary>
        public decimal? ResponseSelfRate { get; set; }
        /// <summary>
        /// 限价
        /// </summary>
        public decimal? ResponseLimitPrice { get; set; }
        /// <summary>
        /// 备注(说明出现自费自理金额的原因，his端必须将此信息显示到前台。)
        /// </summary>
        public string? ResponseRemark { get; set; }
        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime? UploadTime { get; set; }
        public int? CreateUserId { get; set; }
        public DateTime? CreateOn { get; set; }
        public int? UpdateUserId { get; set; }
        public DateTime? UpdateOn { get; set; }
        /// <summary>
        /// 状态
        /// (
        /// 0未核对（未上传）
        /// 1已上传
        /// 2已核对（未上传）（撤销上传后状态变为已核对）
        /// 3已结账
        /// 4上传失败
        /// 5已预结算
        /// )
        /// </summary>
        public int? Status { get; set; }
        public int HospitalId { get; set; }
        public long? GlobalId { get; set; }
        public int? ItemId { get; set; }
        /// <summary>
        /// 费用id
        /// </summary>
        public long? Id { get; set; }
        /// <summary>
        /// 原费用id
        /// </summary>
        public long? FeeId { get; set; }
        /// <summary>
        /// 参保地医保区划
        /// </summary>
        public string? InsuplcAdmdvs { get; set; }
        /// <summary>
        /// 报文id
        /// </summary>
        public string? MsgId { get; set; }
        /// <summary>
        /// 失败原因
        /// </summary>
        public string? ErrMsg { get; set; }
        /// <summary>
        /// 结算id
        /// </summary>
        public string? SetlId { get; set; }
    }
}
